<?php
include('include/config.inc.php');
if(!isset($_SESSION['s_activId'.$cfgPack])
  || (isset($_SESSION['s_userType'.$cfgPack]) && isset($cfgFileNames['complainservice'][$_SESSION['s_userType'.$cfgPack]]) 
      && $cfgFileNames['complainservice'][$_SESSION['s_userType'.$cfgPack]] == 0))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{
	$userArr = array();
	$userCnt = 0;
	$selectUser = "SELECT * FROM user";
	$selectUserRes = mysql_query($selectUser);
	while($userRow = mysql_fetch_array($selectUserRes))
	{
		$userArr['userId'][$userCnt]   = $userRow['userId'];
		$userArr['userName'][$userCnt] = $userRow['userName'];
		$userCnt++;
	}
}
include("./bottom.php");
$smarty->assign("userArr",$userArr);
$smarty->display("userTargetReport.tpl");
?>